package com.sdkj.recruit.common;


/**
 * 企业社区自定义异常，便于统一处理返回通用响应对象
 * 
 * @author chenxiaozhong
 * @version 1.0 2017�?4�?25�?
 * @since 1.0
 */
public class AppException extends RuntimeException{

	private static final long serialVersionUID = -775333589099919672L;
	private int code = 500;

	public AppException() {
		super();
	}
	
	public AppException(String message) {
		super(message);
	}
	
	public AppException(Throwable cause) {
		super(cause);
	}
	
	public AppException(int code, String message) {
        super(message);
        this.code = code;
    }

	public AppException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
	
	public int getCode() {
		return code;
	}
}
